<template>
  <el-dialog v-model="dialogTableVisible" title="版本信息" width="1400">
    <div class="info">
      <div class="leftTitle">appId:</div>
      <span class="rightVal">{{ projmanager.appId }}</span>
    </div>
    <div class="info">
      <div class="leftTitle">提交用户:</div>
      <span class="rightVal">{{ projmanager.user }}</span>
    </div>
    <div class="info">
      <div class="leftTitle">签名工具:</div>
      <span class="rightVal">{{ projmanager.toolsign }}</span>
    </div>
    <div class="info">
      <div class="leftTitle">发布时间:</div>
      <span class="rightVal">{{ projmanager.publish_time }}</span>
    </div>
    <div class="info">
      <div class="leftTitle">发布标签:</div>
      <span class="rightVal">{{ projmanager.lasttag }}</span>
    </div>
    <div class="info">
      <div class="leftTitle">访问域名:</div>
      <span class="rightVal">{{ projmanager.domainName }}</span>
    </div>
    <el-table :data="projmanager.historylog">
      <el-table-column
        property="user"
        label="提交用户"
        align="center"
        header-align="center"
        width="140"
      />
      <el-table-column
        property="time"
        label="提交时间"
        align="center"
        header-align="center"
        width="140"
      />
      <el-table-column
        property="filenums"
        label="修改文件数量"
        align="center"
        header-align="center"
        width="140"
      />
      <el-table-column
        property="tag"
        label="提交标签"
        align="center"
        header-align="center"
        width="300"
      />
      <el-table-column property="log" label="提交信息" />
    </el-table>
  </el-dialog>
</template>

<script setup>
import { ref } from 'vue';
const dialogTableVisible = ref(false);
const projmanager = ref({});
function openChange(val) {
  projmanager.value = val;
  dialogTableVisible.value = true;
}

defineExpose({
  openChange,
});
</script>
<style lang="scss" scoped>
.info {
  display: flex;
  flex-direction: row;
  font-size: 16px;
  margin: 10px 0;
  .leftTitle {
    width: 120px;
    text-align: right;
  }
  .rightVal {
    margin-left: 20px;
    font-weight: bold;
  }
}
</style>
